package za.co.johanmynhardt.jee.entity;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 * @author johan.mynhardt@thumbtribe.mobi
 * @version 2011.0720
 *          Time: 9:11 PM
 */
@Entity(name = "SiteUser")
public class User implements Serializable {
	private Long id;
	private String name;
	private String surname;
	private String email;
	private String password;

	@Id
	@GeneratedValue( strategy = GenerationType.IDENTITY)
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSurname() {
		return surname;
	}

	public void setSurname(String surname) {
		this.surname = surname;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}
}
